# Contributor: Sasha Gerrand <alpine-pkgs@sgerrand.com>
# Maintainer: Sasha Gerrand <alpine-pkgs@sgerrand.com>
pkgname=py3-schema
pkgver=0.7.2
pkgrel=0
pkgdesc="Schema is a library for validating Python data structures"
url="https://github.com/keleshev/schema"
arch="noarch"
license="MIT"
depends="python3"
checkdepends="py3-pytest py3-mock"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/keleshev/schema/archive/v$pkgver.tar.gz"
builddir="$srcdir/schema-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	PYTHONPATH="$PWD" python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="7d40c64bb267da4f95f851d2cadbfc6a9606c1328d5ab9a81616849a7c52281a5a7bafdd3b09d9e8baff233a7da067d3f8ff15a13a1285d13cabfad8080b819b  py3-schema-0.7.2.tar.gz"
